import crypto from 'crypto-js'
const KEY = crypto.enc.Utf8.parse('-mall4j-password')

export const aesEncode = (s: string) => {
  const str = new Date().getTime() + s
  return crypto.AES.encrypt(str, KEY, {
    mode: crypto.mode.ECB,
    padding: crypto.pad.Pkcs7
  }).toString()
}
